import React from 'react'
import { Provider } from 'react-redux'
import { BrowserRouter, Route } from 'react-router-dom'
import './style.js'
import Header from './common/header'
import Home from './pages/home'
import Detail from './pages/detail'
import store from './store'
import Login from './pages/login'

class App extends React.Component {
  render() {
    return(
    	<Provider store={store}> 		
    		 <BrowserRouter>
	    		 <div>
                    <Header />
                    <Route path='/' exact component={Home}></Route>
	    		 	<Route path='/login' exact component={Login}></Route>
    		 		<Route path='/detail' exact component={Detail}></Route>
	    		 </div>	
    		 </BrowserRouter> 		 
    	</Provider>    
    )
  }
}

export default App